package cn.star.jots.comments.mapper;

import cn.star.jots.comments.pojo.dto.CommentsQuery;
import cn.star.jots.comments.pojo.entity.Comments;
import cn.star.jots.comments.pojo.vo.CommentsVO;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CommentsMapper {
    List<CommentsVO> search(CommentsQuery commentsQuery);

    void addRoot(Comments comments);


    List<CommentsVO> searchByUserId(String userId);

    void update(Comments comments);

    List<CommentsVO> searchAll(CommentsQuery commentsQuery);
}
